
// 管理项目用户相关接口
import service from "./service";
// 用户相关请求地址
const API = {
  GET_SKU_URL: '/products/spu',
  SKU_URL: '/products/sku',
  // ADD_SPU_URL: '/products/spu',

}
export const getSKUAPI = (SPUID) => service.get(API.GET_SKU_URL + `/${SPUID}` + '/sku')
export const updateSKUAPI = (id, data) => service.put(API.SKU_URL + `/${id}`, data)
export const newSKUAPI = (data) => service.post(API.SKU_URL, data)
export const deleteSKUAPI = (id) => service.delete(API.SKU_URL + `/${id}`)
// export const updateSpuAPI = (id, data) => service.put(API.ADD_SPU_URL + `/${id}`, data)
// export const addspuAPI = (data) => service.post(API.ADD_SPU_URL, data)
// export const deleteSPUAPI = (id) => service.delete(API.ADD_SPU_URL + `/${id}`)
